package com.zjgsu.demo.nodeEntity;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;

import java.util.List;

@NodeEntity(label="Prip")
public class Prip {
    @GraphId
    private Long id;

    private String pripContent;

    @Relationship(type = "pripDev")
    @JsonProperty("pripDev")
    private List<Dev> pripDev;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPripContent() {
        return pripContent;
    }

    public void setPripContent(String pripContent) {
        this.pripContent = pripContent;
    }

    public List<Dev> getPripDev() {
        return pripDev;
    }

    public void setPripDev(List<Dev> pripDev) {
        this.pripDev = pripDev;
    }
}
